package br.com.lucasddaniel.merchanmobile.activities;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
import android.widget.Button;
import android.widget.ScrollView;
import br.com.lucasddaniel.merchanmobile.R;

public class ListarClientes extends Activity implements OnClickListener{

	private Button mButtonEfetuarCompra;
	private ScrollView scrollview;

	private Context myContext = this;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_listar_clientes);
		getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); 
		
		mButtonEfetuarCompra = (Button) findViewById(R.id_activity_listar_clientes.button_efetuar_compra);
		mButtonEfetuarCompra.setOnClickListener(this);
		((Button) findViewById(R.id_activity_listar_clientes.button_editar))
				.setOnClickListener(this);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id_activity_listar_clientes.button_efetuar_compra:
			AlertDialog dialog3 = new AlertDialog.Builder(this).create();
			dialog3.setMessage("Tela para configura��o da impressora...");
			dialog3.setButton("OK", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog3, int whichButton) {
					dialog3.dismiss();
				}
			});
			dialog3.show();

			break;
		case R.id_activity_listar_clientes.button_editar:
			startActivity(new Intent(this, TuristasActivity.class));
			
			break;
			
		default:
			break;
		}

	}


}
